0706d00c4f35be3c351c53f5bfc4aecf4c8568a3,tests/infrastructure/src/main/java/org/mule/test/infrastructure/deployment/FakeMuleServer.java,FakeMuleServer,addZippedPlugin,#String#,295

Before Change



    public void addZippedPlugin(String resource) throws IOException, URISyntaxException
    {
        URI uri = getClass().getClassLoader().getResource(resource).toURI();
        String baseName = FilenameUtils.getName(uri.getPath());
        File tempFile = new File(getPluginsDir(), baseName);
        FileUtils.copyURLToFile(uri.toURL(), tempFile);
    }

    public File getMuleHome()

After Change



    public void addZippedPlugin(String resource) throws IOException, URISyntaxException
    {
        URL url = getClass().getClassLoader().getResource(resource).toURI().toURL();
        String baseName = FilenameUtils.getName(url.getPath());
        File tempFile = new File(getPluginsDir(), baseName);
        FileUtils.copyURLToFile(url, tempFile);